package com.community.service;

import com.community.pojo.Announcement;
import com.community.pojo.User;

import java.util.List;

public interface AdminService {
    int addUser(User user);
    int deleteUser(Integer userId);
    int updatePassword(Integer userId,String newPassword);
    int updateUser(User user);
     User findUser(Integer userId);
    User findUserByUsername(String username);
    List<User> findAllUser();
}
